#include<stdio.h>//
// Created by baoch on 2024/10/26.
int main()
{
    int i;
    int j = 1;
    int k = 1;
    int sum1 = 0;
    int sum2 = 0;
    double sum3 = 0.00;
    for(i = 0; i <= 100; i++)//求1到100的和
    {
        sum1 += i;
    }
    while(j <= 50)//求1到50的平方和
    {

        int ji = j * j;
        j++;
        sum2 = sum2 + ji;
    }
    while(k <= 10)
    {

        double chu = 1.0 / k;
        k++;
        sum3 = sum3 + chu;
    }
    printf("%.4lf",(double)sum1 + sum2 + sum3);
    return 0;

}